package com.sk.cardeal.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.sk.cardeal.R;
import com.sk.cardeal.entity.WorkPostion;

import java.util.List;

/**
 * Created by sk on 2018/1/19.
 */

public class WorkPostionAdapter extends BaseQuickAdapter<WorkPostion, BaseViewHolder> {

    public WorkPostionAdapter(int layoutResId, @Nullable List<WorkPostion> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, WorkPostion item) {

        helper.setText(R.id.tv_name, item.getText())
                .setText(R.id.tv_status, item.getState() + "");

    }
}
